<template>
    <div class="list-info-item2 clearfix coupon-select text-normal clearfix" style="padding: 30rpx 20rpx 30rpx 30rpx;" @click="onClick">
        <div class="fl">{{label}}</div>
        <div class="fr grey-text-color">
            <span>{{text}}</span>
            <span v-if="showArrow" class="icon">&#xe770;</span>
        </div>
    </div>
</template>

<script>
export default {
    name: 'ListinfoItemAddress',
    props: {
        /** 左侧内容 */
        label: {
            type: String,
        },
        text: {
            type: String,
        },
        showArrow: {
            type: Boolean,
            default: true,
        },
    },
    methods: {
        onClick() {
            this.$emit('click');
        },
    },
};
</script>

<style lang="less">
@import "../../lib/style/mixins.less";

.list-info-item2 {
    padding: 30rpx;
    background-color: #ffffff;

    .icon {
        font-size: 18px;
    }
}
</style>
